Nevron Open Vision Documentation
Nevron.Nov.Text Namespace / NEncoding Class / GetBytes Method / GetBytes(Char[],Int32,Int32,Byte[],Int32) Method
The characters to encode.
The char index at which to start encoding.
The number of chars to encode.
The byte array in which to put the resulting bytes.
The index in the byte array at which to begin putting bytes.


In This Topic
    GetBytes(Char[],Int32,Int32,Byte[],Int32) Method
    In This Topic
    Encodes "charCount" characters from the given string, starting from the character at index "charIndex" and puts them in the specified byte array, starting from "byteIndex".
    Syntax
    'Declaration
     
    
    Public Overloads MustOverride Function GetBytes( _
       ByVal str() As System.Char, _
       ByRef charIndex As System.Integer, _
       ByVal charCount As System.Integer, _
       ByVal bytes() As System.Byte, _
       ByVal byteIndex As System.Integer _
    ) As System.Integer
    'Usage
     
    
    Dim instance As NEncoding
    Dim str() As System.Char
    Dim charIndex As System.Integer
    Dim charCount As System.Integer
    Dim bytes() As System.Byte
    Dim byteIndex As System.Integer
    Dim value As System.Integer
     
    value = instance.GetBytes(str, charIndex, charCount, bytes, byteIndex)
    public abstract System.int GetBytes( 
       System.char[] str,
       ref System.int charIndex,
       System.int charCount,
       System.byte[] bytes,
       System.int byteIndex
    )

    Parameters

    str
    The characters to encode.
    charIndex
    The char index at which to start encoding.
    charCount
    The number of chars to encode.
    bytes
    The byte array in which to put the resulting bytes.
    byteIndex
    The index in the byte array at which to begin putting bytes.

    Return Value

    The number of resulting bytes.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also